#ifndef __CM_MEDIA_MEDIA_FRAME_POOL_H__
#define __CM_MEDIA_MEDIA_FRAME_POOL_H__

#include "ByteBufferPool.h"
#include "Poco/NotificationCenter.h"

using namespace cm_base;
using namespace Poco;

namespace cm_media
{
    class MediaFramePoolNotification: public Notification
    {

    };

    class MediaFramePool : public ByteBufferPool
    {
    public:
        MediaFramePool();
        ~MediaFramePool();

        virtual void put(ByteBuffer* pb);

        NotificationCenter* getNotificationCenter();
    protected:
        //notify observers when Frame returned 
        void notifyObservers();
        NotificationCenter* m_nc;
    };
}

#endif